package com.example.forum.mapper;

import cn.hutool.core.date.DateTime;
import com.example.forum.entity.TAppuser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author why
 * @since 2020-04-22
 */
public interface TAppuserMapper extends BaseMapper<TAppuser> {

    List<TAppuser> getAppointList(@Param("pageIndex")Integer pageIndex,
                                  @Param("pageSize")Integer pageSize,
                                  @Param("nameOrPhone")String nameOrPhone,
                                  @Param("appointStatus") String appointStatus,
                                  @Param("offset")DateTime offset,
                                  @Param("dateTime")DateTime dateTime,
                                  @Param("streetId")String streetId,
                                  @Param("neighborhoodCommitteeId")String neighborhoodCommitteeId);

    List<TAppuser> getAppointListNum(String nameOrPhone, String appointStatus, DateTime offset, DateTime dateTime);

}
